<meta charset="UTF-8">
<script type="text/javascript" src="${ctx}/resources/js/project/background/companyUser/form.js"></script>
<@m.formShade/>
<div class="easyui-layout" data-options="fit:true">   
    <div data-options="region:'center'" style="padding:3px;">
	    <form id="companyUser_form">
	    	<input type="hidden" name="id" >
			<table class="form_table">
				<tr>
					<td class="label">头像</td>
					<td colspan="3">
						<div id="companyUser_form_files" class="zyupload" style="float: left;">
						</div>
					</td>
				</tr>
				<tr>
					<td class="label">用户名<@m.redstar/></td>
					<td>
						<input name="userName" class="easyui-textbox" data-options="width:155,required:true,validType:'maxLength[100]'">
					</td>
					<td class="label">昵称</td>
					<td>
						<input name="name" class="easyui-textbox" data-options="width:155,validType:'maxLength[100]'">
					</td>
				</tr>
				<tr>
					<td class="label">密码</td>
					<td>
						<input name="passWord" class="easyui-textbox" data-options="width:155,type:'password',validType:'maxLength[50]'">
					</td>
					<td class="label">用户类型</td>
					<td>
						<@m.combobox code="USERTYPE" name="type" readonly="true" value="2"/>
					</td>
				</tr>
				<tr>
					<td class="label">角色<@m.redstar/></td>
					<td>
						<@m.combobox code="" url="/background/role/queryCompanyRoles" name="roleIds" required="true"/>
					</td>
					<td class="label">状态<@m.redstar/></td>
					<td>
						<@m.combobox code="STATE" name="state" required="true"/>
					</td>
				</tr>
				<tr>
					<td class="label">电话</td>
					<td>
						<input name="phone" class="easyui-textbox" data-options="width:155,validType:'maxLength[50]'">
					</td>
					<td class="label">邮箱</td>
					<td>
						<input name="email" class="easyui-textbox" data-options="width:155,validType:'maxLength[50]'">
					</td>
				</tr>
				<tr>
					<td class="label">地址</td>
					<td>
						<input name="address" class="easyui-textbox" data-options="width:155,validType:'maxLength[250]'">
					</td>
					<td class="label" id="companyUser_form_ssqytd">所属企业</td>
					<td>
						<input name="companyName" class="easyui-textbox" data-options="width:155,readonly:true">
					</td>
				</tr>
			</table>
		</form>
    </div>
    <div data-options="region:'south',split:true" style="height:35px;text-align: center;">
    	<@m.btns menucode="COMPANYUSERMANAGE" btncodes=["companyUser_savebtn"]/>
    </div> 
</div> 
